//
//  StoreCollectionViewCell.m
//  FoodFamily
//
//  Created by dlios on 15-6-24.
//  Copyright (c) 2015年 guoBang. All rights reserved.
//

#import "StoreCollectionViewCell.h"

@implementation StoreCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{

    self = [super initWithFrame:frame];
    if (self) {
        [self creatSubView];
    }
    return self;

}

-(void)creatSubView{


    self.picture_url = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0,  self.frame.size.width, self.frame.size.height)];
    self.picture_url.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.picture_url];
    [self.picture_url release];
    
    
    
}

-(void)setDic:(NSMutableDictionary *)dic{


    if (_dic != dic) {
        [_dic release];
        _dic = [dic retain];
    }

    
    NSURL *url = [dic objectForKey:@"picture_url"];

    [self.picture_url sd_setImageWithURL:url];
    
    
    
    
}

-(void)dealloc{
    [_picture_url release];
    [_dic release];
    [super dealloc];

}




@end
